﻿@{
    ViewBag.Title = "ConsultarSolicitud";
    Layout = "~/Views/Shared/_LayoutICE.cshtml";
}

<table>
    <tr>
        <th>ID</th>
        <th>Usuario</th>
        <th>Cédula del Empleado</th>
        <th>Primer Apellido</th>
        <th>Segundo Apellido</th>
        <th>Nombre</th>
        <th>Código CF</th>
        <th>Fecha Inicio</th>
        <th>Fecha Fin</th>
        <th>Total Días Solicitados</th>
        <th>Fecha</th>
    </tr>
@{
    ICE.Vacations.Request.Documents document = new ICE.Vacations.Request.Documents();
    try{
        
    foreach (ICE.Vacations.Request.Documents doc in document.SelectAll())
    { 
        <tr> 
        <td>@doc.requestID</td>
        <td>@doc.username</td>
        <td>@doc.employeeID</td>
        <td>@doc.apellido1</td> 
        <td>@doc.apellido2</td> 
        <td>@doc.employeeName</td> 
        <td>@doc.cod_cf</td> 
        <td>@doc.dateFrom.Substring(0,10)</td> 
        <td>@doc.dateTo.Substring(0,10)</td>
        <td>@doc.totalRequestedDays</td>  
        <td>@doc.dateRegistered.Substring(0,10)</td>   
             
        </tr>
       
    }
    }catch(Exception exc)
    {
        ICE.Vacations.Helper.Services.Services.sendLog("Ocurrió un error: " + exc.Message, ICE.Vacations.Helper.Services.Services.errorType.DBError);
    }
    }

    </table>
@*<div>
        <table id="jqTable" class="scroll"></table>
        <div id="jqTablePager" />
    </div>*@
